<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
    #z {
        width: 200px;
        height: 200px;
        background-image: url(2.png);
        background-repeat: no-repeat;
    }
    #y {
        width: 200px;
        height: 200px;
        background-image: url(精灵图1.png);
        background-repeat: no-repeat;
    }
    </style>
</head>
<body>
    <div id="z"></div>
    <div id="y"></div>
</body>
</html>